package com.shopping.service.service.simple;

import com.github.pagehelper.Page;
import com.shopping.common.core.object.ResponseResult;
import com.shopping.common.sp.dto.simple.SimpleDto;
import com.shopping.common.sp.query.simple.SimpleQuery;
import com.shopping.common.sp.vo.simple.SimpleVo;

import java.util.List;

public interface SimpleService {
    /**
     * 添加示例
     * @param dto
     * @return
     */
    ResponseResult<Void> addSimple(SimpleDto dto);

    /**
     * 根据查询条件查找示例
     * @param simpleQuery
     * @return
     */
    ResponseResult<Page<SimpleVo>> simplePage(SimpleQuery simpleQuery);

    /**
     * 修改示例
     * @param dto
     * @return
     */
    ResponseResult<Void> updateSimple(SimpleDto dto);

    /**
     * 根据id批量删除
     * @param simpleIdList
     * @return
     */
    ResponseResult<Void> deleteSimple(List<Long> simpleIdList);
}
